MAKEFILE_PATH := $(call my-dir)
HEXCHAT_SOURCES_PATH := $(MY_JNI_PATH)/hexchat
LOCAL_PATH:= $(HEXCHAT_SOURCES_PATH)/src

include $(CLEAR_VARS)

include $(LOCAL_PATH)/common/Sources.mk
include $(LOCAL_PATH)/fe-gtk/Sources.mk

LOCAL_MODULE:= hexchat
LOCAL_SRC_FILES:= $(HEXCHAT_SOURCES) $(COMMON_SOURCES)
LOCAL_CFLAGS += -DANDROID -DNDKGTK3 #-DGLIB_COMPILATION=1 -DNVALGRIND=1
#LOCAL_EXPORT_LDLIBS := -lz
LOCAL_C_INCLUDES := $(HEXCHAT_SOURCES_PATH) $(LOCAL_PATH)/common $(LOCAL_PATH)/fe-gtk \
					$(GTK_INCLUDES) \
                    $(NDK_ROOT)/sources/android/support/include \
                    $(NDK_ROOT)/sources/android/support/src/musl-locale
LOCAL_STATIC_LIBRARIES := gtk

#export HEXCHAT_INCLUDES := $(MAKEFILE_PATH)/include $(GLIB_SOURCES_PATH) \
                        #$(GLIB_SOURCES_PATH)/gmodule $(LOCAL_PATH)

include $(BUILD_STATIC_LIBRARY)
$(call import-module,gtk)
